//
//  RootRankDetailDataModel.m
//  MJRefreshExample
//
//  Created by Gollum on 16/09/07
//  Copyright (c) __ORGANIZATIONNAME__. All rights reserved.
//

#import "RootRankDetailDataModel.h"
#import "RootRankDetailNewsimageinfolist.h"

@implementation RootRankDetailDataModel

+ (NSDictionary *)objectClassInArray{
    return @{@"newsImageInfoList" : [RootRankDetailNewsimageinfolist class]};
}
- (void)setValue:(id)value forKey:(NSString *)key{
    
    [super setValue:value forKey:key];
    
    NSMutableArray <RootRankDetailNewsimageinfolist *> *newsImageArr= [NSMutableArray array];
    NSArray *valueArray = value;
    if ([key isEqualToString:@"newsImageInfoList"]) {
        for (NSDictionary *dic in valueArray) {
            RootRankDetailNewsimageinfolist *newsImage = [RootRankDetailNewsimageinfolist modelWithDic:dic];
            [newsImageArr addObject:newsImage];
        }
        _newsImageInfoList = newsImageArr;
    }
}

@end
